tab.js: make jslint happy
Rewrite tab route in CoffeeScript, add tests