Use global vs. window for browserify resolution of global object

This fixes yet another bug in our shared watches code.  Because of the way that browserify works, when we want to access `window` we need to use `global` and not `this`.  In our setup for Intercom, we test for `this.localStorage` and it fails, so we shim localStorage, and kill shared watches.  This fixes it.

I've also made the same fix to one other spot in our tests that was doing the same thing.