Add geolocating input box, cleanup JS.