Node.js implementation