Chrome compatibility (simply inject the whole script into the page scope).