Adds support for AMD/CommonJS.