Minor javascript refactoring on landing page
Set default location in case geolocation fails