Support commonjs and browserify