Makes module compatible with CommonJS.
Merge pull request #1 from alexgorbatchev/master

Makes module compatible with CommonJS.