update

did some changes to the map.js
according to the jslint errors