Add geolocation demo http://www.html5rocks.com/en/tutorials/geolocation/trip_meter/ to the same page.