Cleaned app.js a little