Migrate off JS 1.8

* removes JS 1.8 specific code
* removes a bunch of dead code
* refactors `dashboard.js` with an 80 char line length and 4 space indents
* jshint compliance
* restores URL parsing (fixes bug 912282)