Oh... In my Build folder there is no UnityLoader.js there is WebBuild.loader.js ... I guess Unity might have played around with file naming conventions because WebBuild is the name of the folder I have given to Unity as a build target directory. I'm using Unity 2020.2.0f1.
That's the issue I suppose lol. I made this tool while I had an older version of Unity. I'll update it when I can. Thanks for informing me about this :)