Psychopy JS file is not created correctly, missing variables at beginning

URL of experiment:

Description of the problem:
The psychopy JS file is not created correctly. The declared variables at the beginning are missing and it throws an error ‘var __ is not defined’ when trying to run on Pavlovia. I wrote some custom JS code that could be causing this, but I’m not sure. Pushing changes to gitlab takes forever, I’m guessing the JS auto converter is having issues. Wish there were error messages to say what is going wrong.