Export a global var when running in the browser, to support module loaders that use eval().