Compatibility layer for node.js scripts within the browser.