Added documentation for map.js