(function(ext) {
    ext._shutdown = function() {};
    ext._getStatus = function() {
        return {status: 2, msg: 'Ready'};
    };
    
    ext.create = function(name, params, js, type, desc) {
        eval("\(function\(ext\) \{ext\._shutdown \= function\(\) \{\}; ext\._getStatus \= function\(\) \{return \{status\: 2, msg\: \'Ready\'\};\}; ext\." + name + " \= function\(" + params + "\) \{" + js + "\}; var descriptor \= \{blocks: \[\[\'" + type + "\', \'" + desc + "'\, \'" + name + "\'\]\,\]\,\};ScratchExtensions\.register\(\'" + name + "\'\, descriptor\, ext\)\;\}\)\(\{\}\)\;")
    };
    
    ext.jar = function(script) {
        eval(script);
    }
    
    ext.ja2r = function(script) {
        eval(script);
    }
    
    ext.jar3 = function(script) {
        eval(script);
    }
    
    var descriptor = {
        blocks: [
            [' ', 'create block: name %s params %s js %s type %s desc %s', 'create', "custom", "hello", "return true", "r", "true %s"],
            [' ', 'eval %s', 'jar', 'return true'],
            ['r', 'eval %s', 'jar2', 'return true'],
            ['b', 'eval %s', 'jar3', 'return true'],
        ],
    };

    ScratchExtensions.register('Mod - Custom', descriptor, ext);
})({});

@@ -675,10 +675,10 @@
 t.ja
-2
 r
+2
  = f
@@ -695,32 +695,39 @@
 ript) %7B%0A        
+return 
 eval(script);%0A  
@@ -769,32 +769,39 @@
 ript) %7B%0A        
+return 
 eval(script);%0A  

Update script.js