Converted remaining code to literate coffeescript.