add CJS support
Merge pull request #2 from kirbysayshi/ksh/cjs

add CJS support