async code in app.js