added commonjs and amd