Code from following through reading Smashing Magazine's Node JS book