Make compatible with CommonJS module systems.
Merge pull request #6 from brianloveswords/module

Make compatible with CommonJS module systems.