Addressing Nathan's comments on my last checkin:
- Fixed main.js such that the demo page (map.html) works
- Removed some unnecessary code
- Modified comments