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

added CommonJS module support