Hello,
I added that line in a custom code component in my first routine. The crib sheet referred to in the previous response gives instructions for that and can be found here (PsychoPy Python to Javascript crib sheet)
The crib sheet also includes a lot of other good info about translating PsychoPy to Pavlovia, so I hope you find it useful!