Rewrite to CoffeeScript.
Remove some log statements.