add commonjs support
Merge pull request #1 from shuvalov-anton/CommonJS

add commonjs support