support commonjs

adds support for commonjs modules