Added app.js and separated controllers