app.js now complete