support amd,commonjs,global via umd