Update annonymous function calls on app.js