make sure to use `global` in browser wrappers