MV What does this mean? (LTBS Stuff)

Ok, so I'm having trouble getting PHX_LeMod.js to work and the only hint I got was this:
I also found some issues with my regex in the regular PHX_Mod file, so I'm gonna try to get that updated.
it was using circle(e.customsquare()) as the code it was pulling thru regex instead of e.customsquare().
Updated code should fix it fine - it worked for me.
Regarding this code:
JavaScript:
//Modifies makeScope to allow function calls inside the scope.
PHX_LeMod.old_makeScope = BattleManagerTBS.makeScope;
BattleManagerTBS.makeScope = function (data, center, param) {
    var str, min, size;
    var e = param.user;
    if (e)
        var a = e.battler();

    if (data.match(/(circle|line|square|cross)\((.+)\)/i)) {
        console.log(data);
        if (RegExp.$2.includes(",")) {
            str = RegExp.$2.split(",");
            size = Math.floor(Number(eval(str[0])));
            min = Math.floor(Number(eval(str[1])));
        } else if(RegExp.$2.match(/(\(.*\))/i))
        {
            //This checks if a function is used instead of the normal circle(x)/circle(x,y) format to return a number or x,y
            //This will only be used if it does not use function(),function() as that will get picked up by the first statement.
            //Afterwards, it essentially clones the original function with checking if comma delimited, or not.
        R2 = eval(RegExp.$2);
               if (R2.includes(",")) {
                str = R2.split(",");
               size = Math.floor(Number(eval(str[0])));
               min = Math.floor(Number(eval(str[1])));
        }
        else {
            size = Math.floor(Number(eval(RegExp.$2)));
            }
        }
        else {
            size = Math.floor(Number(eval(RegExp.$2)));
        }
    }

    if (data.match(/custom\((.+)\)/i)) {
        var scopeData = Lecode.S_TBS.Config.Custom_Scopes[String(RegExp.$1)];
        scope = this.getScopeFromRawData(scopeData, center, param);
    } else if (data.match(/circle\((.+)\)/i)) {
        scope = this.makeCircleScope(center, size, min, param);
    } else if (data.match(/line\((.+)\)/i)) {
        scope = this.makeLineScope(center, size, min, param);
    } else if (data.match(/square\((.+)\)/i)) {
        scope = this.makeSquareScope(center, size, min, param);
    } else if (data.match(/cross\((.+)\)/i)) {
        scope = this.makeCrossScope(center, size, min, param);
    } else if (data.match(/path/i)) {
        scope = this.makePathScope(param);
    } else {
        var cx = center.x;
        var cy = center.y;
        var aoe = eval("[" + data + "]");
        for (var i = 0; i < aoe.length; i++) {
            var cell = this.getCellAt(aoe[i][0], aoe[i][1]);
            if (cell)
                scope.push(cell);
        }
    }
    return LeUtilities.uniqArray(scope);
};
Which is meant to replace the makeScope function in LTBS to accommodate for custom scopes. Examples of custom scopes are included at the bottom of PHX_LeMod.js:
JavaScript:
/*
* ============================================================================
*  Example Scope Functions
*
* scope: circle(e.customRangeSquare())
* scope: circle(e.customSquare())
*
* ===========================================================================
*/

TBSEntity.prototype.customSquare = function () {
    if(this.getMovePoints()>2)
    {return 5;}
    else
    {return 3;}
};

TBSEntity.prototype.customRangeSquare = function () {
    if(this.getMovePoints()>2)
    {return "8,3";}
    else
    {return "5,1";}
};
So I created a new blank project w/ the LTBS plugins and PHX_LeMod.js right below those. I created a skill w/ the following:
JavaScript:
<letbs>
scope: circle(e.customSquare())
sequence: atk
</letbs>
<letbs_AI>
type: offense
</letbs_AI>
But when I try to select the skill, I get an error (cuz it's having trouble getting the skill's scope):
1606018756764.png

I think I just have to employ the fix regarding circle(e.customsquare()) -> e.customsquare(), but I just don't know how since I was never able to obtain this "updated code" lol.

Original thread: https://forums.rpgmakerweb.com/threads/what-does-this-mean-ltbs-stuff.130161/