Data doesn't save

Took a look. I see that you’ve been editing straight in JS (instead of via the builder) and I notice that the version of PsychoJS being used is quite an old one (v2020.1, while we’re now at 2021.1.2). I see some code in there that doesn’t actually do anything, such as order_num.toString(); on line 3726.

I’m sorry to say that I can’t really debug this code; it’s way too complex to get a grasp of. Taking a general look I’d say: consider rebuilding it in the most recent version of PsychoPy builder, don’t edit the generated JS.