make support for requirejs generic