Both Engines can use Javascript I believe. Unity certainly does.
Speaking of engines like unity and unreal etc, is the code similar to javascript? I heard something like this before.
Myself, I wouldn't mind getting away from MUGEN and using a better engine or building a better engine with javascript.