Added support for RequireJS.