Add a log function whilst debugging this.

When we finish up, console.log won't be necessary. For now, I need
to make sure that IE <= 8 doesn't blow up on me.