having the ajax calls execute after the geolocation variables are set