[javascript] Best way to store a key=>value array in JavaScript?