Integrate geolocation using javascript