*properly* update dependencies

I have learned how to merge a GitHub pull request.
code hygiene

Use `var` where necessary, put spaces after `if`s, get less pedantic about truthiness, and use `null` checks for optional arguments.  I am not totally certain about that last one but it's what CoffeeScript does, so it's probably all right.