slight fix in map.js