Javascript Map Over Empty Array Declaration