added support for loading node.js modules for compiling to browser and node.js