made a seperate js file for map js