Bad JS customizations - how to fix in the backend?

Hi,

I am having a similar issues and none of these solutions work. Does anybody have an updated answer for this problem?