RequireJS patch