Javascript Geolocation API and concepts