Fixed map.js ajax function for coordinate input