converted app.js to coffeescript and refactored to use coffeescript classes