Rewrote app in coffeescript