added CommonJS module support
Merge pull request #15 from pyoner/patch-1

added CommonJS module support