Just like a good PBN is supposed to be 1 link = 1 website.
So I discovered that when programming JS with chatgpt (for WP plugins) its best keep the same rule 1 function = 1 file.
I had multiple calls happening all over the place and found it challenging to solve simple conflicting issues, but...