Convert COMMONJS module to CMD module for browser usage