Add support for RequireJS environments