Experiment not running online (on pavlovia, stuck at "initializing")

URL of experiment: EAtask-FINAL [PsychoPy]

Description of the problem:
At first, do we need a token to run a pilot of our study?
Now, the experiment runs locally but doesn’t run online on pavlovia. It gets stuck on the initializing screen.

What have I tried: tried to delete the index.html file from the folder but its giving the 404 error upon running.

A credit isn’t needed to pilot.

Why did you delete index.html?

It was mentioned in one of the discourses here. But yes, it didn’t work. Any other solutions?

The browser console says that the error is related to this line.

// Run 'Before Experiment' code from code
n = 1;

Please remove all Before Experiment code unless you are defining functions (or know why it should be Before Experiment). Use Begin Experiment.