Node.js introduction to functions