I have defined a JavaScript variables called myData which is a new Array like this:
myData
new Array
var myData = new Array([\'2013-01-22\', 0], [\'
I think the simplest way might be:
values.reduce(function(a, b){return a+b;})