Use of geolocation with setInterval