Fixed indentation.
Moved the definition of some constants to app.js.