Fixed (I think) the obvious error in getting geolocation to work.