some extensions for node and the browser