Move event javascript to its own file and geolocate by default