Fixed code error using jslint for the map.js file