Color code not working on Pavlovia PsychoJS

Hi everyone,
I tried to use a code that would color my target image green when someone drags the mouse on it. The code works on the local psychopy environment but it does not seem to be working on web testing. The code I have used located below:

if target_image.contains(mouse):
    target_image.color = [-1,0,-1] 
else:
    target_image.color = [1,1,1]

What would be the problem ?, I did look on js crib sheet but I could not find anything related btw.
Thanks in advance for your help and Happy New Year to you all!

Hi

My crib sheet has a short section devoted to colour. Also, I tend to use .setLineColor() etc.

Best wishes

Wakefield