Custom Cursor Trail


I’m trying to add a cursor trail (behind a custom cursor, where I uploaded as readymag standard option).

The problem is that it works in preview mode but not on the live site…

I’ve put the Javascript into the code editor
I’ve also tried to put it into body, and code widget.
I’ve also tried to put the HTML and CSS, together with the js, but no change (or I’m doing it wrong, as my js knowledge is very limited)

This is the cursor trail and code: