Small fixes in app.js and /templates
Foundation for tests (via mocha/chai)