Nitpick: I would put this in a console object, so that we can just type `console.log(something)` anywhere, and not have to worry about what context we are in.

It might make sense to add console.warn and console.error for the same reason, although that's less of an issue.