Declare variables correctly in app.js