...Browsers don't have the require method defined, but Node.js does. With Browserify you can write code that uses require in the same way that you would use it in Node. Install the uniq module with npm. Now recursively bundle up all the required modules starting at main.js into a single file called bundle.js with the browserify command. Browserify parses the AST for require() calls to traverse the entire dependency graph of your project. Drop a single <script> tag into your html and you're done! browserify is a tool for compiling node-flavored commonjs modules for the browser. ...