cleanup app.js coding