Posting Geolocation in php using Ajax

This is my first time using jquery ajax and the geolocation library. Also, using cookies. You can see it in action here: som/geo And the source code here: gist.github.com/ImranCS/a14c0c7f736fc3364f8a Hope the code is self explanatory.