Add support for commonJS in the browser