Javascript Create Array With Key Value Store