javascript map array to key value object