I\'m trying to create an associative array, create an empty array, and then add a (indexName -> value) pair:
indexName
var arrayName = new Array; arrayName[\
You want a plain object with the same bracket notaiton here, like this:
var arrayName = {}; arrayName["indexName"] = value;