add amd/commonjs support
add amd/commonjs support