create app.js and fill with pseudocode