Clickability of rotated images and polygons

Thank you @wakecarter, and thank you so much @Becca for your help.

I tried to follow your instructions to the letter but I still have issues making the new function rotatePoint to work. There must be some problem with cross-referencing across files.
I get an error when setting the vertices for the very first visual stimulus of the experiment:

when setting the vertices of ShapeStim: dot_pract_1
ReferenceError: rotatePoint is not defined

Here’s my gitlab project:
https://gitlab.pavlovia.org/MFerr/5pointtest

It would be great if you could give it a look. It’s possible I am missing something.
Thank you very much.