draft of app.js