First version based on example from  http://quickleft.com/blog/creating-and-publishing-a-node-js-module example