Attempt at fixing app.js