(refactor) updated app.js to array notation