separate location js file