modified app.js so the web work as before