Tidied up web/app.js