Following walkthrough from http://anders.janmyr.com/2012/04/writing-node-module.html