This time I come with a brand new kind of thing. A fully fledged JS module! There's not too much to explain, and I'm gonna be honest, it's pretty late right now...
Ah yes, probably got broken with modules mode :/
I'll try to update this when I get some time
Fixed it, it was a minor change