Finalized location.js