The code from the big and wonderful tutorial from PHP to Node.js