fix geolocation.js