Add support for require.js and other AMD loaders.