Learning Node.js sample code