Remove crashes in app.js