Added separate license for geolocation javascript file
Cleaned up code

Added comments and fixed a couple small logical inconsistencies. Also
got rid of my api keys in the code- those have now been deactivated.