Code listings from Professional Node.js book.