Use `exportObj` instead of `window`.

fixes #38