added brushing, added some comments to map.js