Convert to CoffeeScript.

Over to you, @switz. References #10. Closes #10.