Export SeXHR to current scope instead of window

This change makes it possible to use SeXHR in environments, where
window is not available, e.g. WebWorkers.