Javascript Map Over Empty Array Php Push