Added support for RequireJS AMD.