Convert all JS to CoffeeScript

Fixes #1