Text element not displaying

URL of experiment: https://pavlovia.org/rorsut/homophonetask

Description of the problem: I have been working on an experiment that uses some elements of custom code, but have been testing frequently to make sure that each bit works on Pavlovia. However, my experiment seems to run only the first routine and then close.

Does it finish without error, but without giving you the opportunity to respond to further trials? If so, this could mean that your response (mouse or keyboard) from the first trial is being carried forward to the rest of your trials.

I think it was because I tired to define a function in one of my pieces of custom code. Is this not allowed in JavaScript?