// Adds a `log` function to window object.