Wrap console.log inside injected script.

In preparation for making logging optional.