Javascript Map Over Empty Array In C