Completed re-writing app in CoffeeScript