This line was moved to the `else` block of the amd checks, i.e. only expose it globally if its not otherwise defined or required as a module.     

I also needed to move it as I'm using this in a firefox add-on, which will barf if you try to modify the window object... no Raven.noConflict() doesn't work.  

(Yes.. firefox has their own commonjs implementation which *does* end up keepin the window object as `this`.)