Made the module work in npm
Merge pull request #66 from Munter/npm

Made the module work in npm