Javascript Create Associative Array Javascript Iteration Method