Finish port to Node.js.