Added implementation for Node.js.