Converts node.js code to amd style modules, so it can be used in a browser.