ran old map.js through jslint, this .js file conforms more closely with correct javascript.