I understand that there are no associative arrays in JavaScript, only objects.
However I can create an array with string keys using bracket
You want to use an object in this case
var myObject = {'a' : 200, 'b' : 300 };
This answer links to a more in-depth explanation: How to do associative array/hashing in JavaScript