Cleaned up app.js from all the clutter