Geolocating on page load and on click
adding error messages
moving JS into standalone file