Display P5JS scripts on RP 3B+

Hello,

I am working on the last weeks on a project based on creative coding at the moment nothing fancy, I test some P5JS scripts on the RP¨and it worked, but right now I create a test, the browser generate a static image but it supposed to be annimated, it works on my laptop.

Idk if the RP has a way to run JS as the same way of a desktop clients, I tried to test it on raspbian x32 and x64 and I get the same result, if somebody with experience in RP and creative code could provide me some advice it would be nice.

Just for reference this is the code that I am working:

The platform is a RP 3B+

Thanks,