Fixes export for browser.