Refactor app.js tiny