module compiler for the browser and node.js