initial geolocation code exploration

Tech.php now asks for your location upon reaching the page. The
calculator is also set up to submit latitude, longitude, accuracy,
altitude, altitude accuracy, heading and speed to a mysql database.
At the moment there are a lot of bugs. The largest of which is that the
inputs will not submit to mysql if the user denies the site access to
their location. The page will also redirect to an error message after
giving the user the calculator results.
The reason that this is happening is that the geolocation variables are
globally defined in calculator.js because I couldn’t figure out how to
call them with the ajax code when they were defined locally within the
(success) function.