JS equivalent of Geocoder PHP