put map js in a separate file
added separate js file