Added locationlib.js

All location related methods and attributes should be here