geolocation and checkbox on index page of requests and javascript in application.html