pseudocode for app.js