Added some comments to map.js