removed inline map js, created new js file called map.js