removing callback syntax from app.js