Initial commit for Location obj in location.js

These functions are untested, next commit will have them properly debugged. I just wanted to expose them so you all could see if there was anything else that needed to be modified/added.