Javascript Map Over Empty Array Php Format Currency