Fix module syntax for CommonJS/Browserify