Fixes #14549. Execute the factory immediately when CommonJS is used in the browser.