Initial conversion using js2coffee

Converted using js2coffee installed via npm.

Indentation is 2 chars instead of 4, but should be easy to fix if we find the general results to be ok.