build for support CommonJS and AMD in browsers