Rewrite our fancy javascript in coffeescript

I think I actually like working in coffeescript. Its indentation-heavy
format harkens back to Python, and there's some constructs in Javascript
that are just a pain to type. Plus, it makes refactoring easier IMO, and
I sense we're only going to be growing our script codebase.