created location.js file in javascript assets folder