I am attempting to store an array in the HTML data tag. For example:
Try this:
var testOne = eval("new Array(" + $('#locations').data('locations') + ")");
Look at it in jsfiddle.