use `exportObj` instead of `window`