Javascript Create Array With Key Value Pairs