Implement alerts

#141 
Remove. The controller should be in app.js