This code:
navigator.geolocation.getCurrentPosition( function(position) { alert(position.coords.latitude, positio
just add
"geolocation", "location"
under permissions. Worked for me. :-)