Fixes #14548. Add main property to package.json
Fixes #14549. Execute the factory immediately when CommonJS is used in the browser.