Help debug student program

My student has created a very complex program that is beyond my ability to help.

Here’s the link:

What’s supposed to happen:
Mario moves to the right through the side scroller game using arrow keys

What’s happening:
So far, every time I go close to the end of the game, somewhere around mario.x = 2500 - 3000, or if I hit question blocks farther in the game, code.org freezes and says the page is unresponsive.

What I’ve tried:
I have tried deleting sprites once i’ve gone past them (lagFix() ), i’ve checked for loops that would break it in the hitQuestion() function and the rest of the code, but I don’t even have an idea if its my actual game or just something to do with code.org. (Also, DO NOT use the wasd keys, A and D zoom you around the map for testing, use the arrow keys)

not sure if this helps but, this seems to work at least i hadn’t had any issues like you mentioned i think the renderer was getting overwhelmed with everything it needed to render as lagFix seems to be more placebo like also the jump mechanic does need some refactoring too (unless you think the quick fix will do fine)