app.js corrected