I had wanted to do something along the lines of `window = global unless window?`, but jasmine barfed on it.