Support for AMD and CommonJS.