Javascript Create Associative Array Javascript Iteration