added support for node.js