Javascript Create Array With Key Value Pair