Moved geolocation related code into a partial. Also removed duplicate jquery on the homepage