support commonjs

so it can be used in projects that build via browserify