Pass Bubble Array in Javascript Function

Pardon my inexperience on this subject. I am attempting to use an array in javascript. I am using Toolbox. My main goal is to pass an array of prices and dates to a javascript function which will create a new array representing the trendline.

When I attempt to populate the price array (decimals) I get an error in the console. “Unexpected Number”. I assume there is some conversion to java array that needs to happen but I am not sure how to address that.

The sample is below. Any help would be appreciated.

image