modify geolocation.js