Mouse click on object error in Pavlovia but good on local PsychoPy

Do you have the mouse component set to end the routine on a valid click on avatar1,avatar2,avatar3,avatar4 ?

You seem to be coding directly into JS rather than using auto translate.