Javascript Map To Create Array In Php