Moved controller defn to app.js