adding commonjs and amd module support