https://github.com/stackmob/stackmob-js-sdk/pull/60/files#L1R445

This seems pretty failsafe without having to add tons of checks for each use of `window`.