Got javascript geolocation working