Copied the example code directly (from http://blog.osbutler.com/2010/mar/25/node-by-example-hello-world/)