Completed Node.js port