main.js is now map-view

Also fixed some JSLint stuff along the way
Map is now working again