Remove all inline JavaScript
(and convert to CoffeeScript).

Closes #37