update geolocation javascript