Rewrite app to use coffeescript