Straight javascript uses $
For platforms such as WordPress you need to change the $ to be jQuery instead
e.g.
$.each(MyArray, function(propName, propVal)
{
console.log(propName, propVal);
});
jQuery.each(MyArray, function(propName, propVal)
{
console.log(propName, propVal);
});
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.