a subset of the Node.js API ported for use in the browser