Looks like one of your function in the TY_ModLoader got messed up, perhaps an unintended edit.
What i meant is that the following line is not correct:
TY.isModAdded = fun',ction(modName) {
Because it should look like this, this is the correct line:
TY.isModAdded = function(modName) {
Can you try editing the line that's not correct with the second line i posted here?
It's just a matter of copy and pasting it in place of the old one, that's all.
Then we can see if this fixes up the issue.