Js fixes

This is a few tweaks for the js of the site:

* only running homepage map code when it's supported by the browser
* removed an unused surveyor library that was causing issues in older IE
* some linting/cleanup of some of the files (wasn't too many serious issues though)

resolves #174, touches #611