corrected app.js