Javascript Array Map Add Element To Dictionary