Create getLoc.js

Javascript to get current location and pass it to a function in another javascript