# Stuck on initializing experiment screen

**URL:** <https://discourse.psychopy.org/t/stuck-on-initializing-experiment-screen/14730>\
**Category:** Online experiments\
**Created:** [July 1, 2020, 2:14pm UTC](https://discourse.psychopy.org/t/stuck-on-initializing-experiment-screen/14730 "2020-07-01T14:14:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lpxhs5](https://avatars.discourse-cdn.com/v4/letter/l/cab0a1/32.png) [@lpxhs5](https://discourse.psychopy.org/u/lpxhs5)\
**Post date:** [July 1, 2020, 2:14pm UTC](https://discourse.psychopy.org/t/stuck-on-initializing-experiment-screen/14730/1 "2020-07-01T14:14:46Z")

</div>

URL of experiment: [Pavlovia](https://pavlovia.org/lpxhs/dragracinggame)

Description of the problem: My online experiment is stuck on the ‘initializing experiment’ screen. I believe that this is caused by a syntax error in the JavaScript, as shown in the error message.

![Screenshot 2020-07-01 at 15.09.59](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/e/2/e2a3d99672a5025f4fa125934e9cad77ad1ee7c9.png)

Would someone please be able to help me work out where the syntax error is in my code?

Thank you!

---

<div class="post-metadata">

**Author:** ![hollysully](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/hollysully/32/45716_2.png) [@hollysully](https://discourse.psychopy.org/u/hollysully)\
**Post date:** [July 1, 2020, 2:44pm UTC](https://discourse.psychopy.org/t/stuck-on-initializing-experiment-screen/14730/2 "2020-07-01T14:44:46Z")

</div>

Open up the two files in your html folder (you will need to open these files in some kind of text editor–I like TextWrangler). The code will be labeled with line numbers. Look for the lines of code indexed in your error messages–it looks like you have one error on line 3191 in the file named “newcarExp2.js” and one error on line 3200 in the file named “newcarExp2-legacy-browsers.js”. From there, you can google the issue found in that line of code.

Be sure to check out this google doc, which has lots of known errors when converting psychopy files to java.

> **[PsychoPy Python to Javascript crib sheet](https://docs.google.com/document/d/13jp0QAqQeFlYSjeZS0fDInvgaDzBXjGQNe4VNKbbNHQ/edit#heading=h.fbo8f8y1ynwk)**
>
> PsychoPy version 2020.1.3Python to JavaScript Crib Sheet Compiled by Wakefield Morys-Carter, Oxford Brookes UniversityPlease retweet Psych\_Stats. PsychoPy 2020 has an automatic Python to Javascript translation tool. This document contains...

---

<div class="post-metadata">

**Author:** ![lpxhs5](https://avatars.discourse-cdn.com/v4/letter/l/cab0a1/32.png) [@lpxhs5](https://discourse.psychopy.org/u/lpxhs5)\
**Post date:** [July 1, 2020, 3:09pm UTC](https://discourse.psychopy.org/t/stuck-on-initializing-experiment-screen/14730/3 "2020-07-01T15:09:10Z")

</div>

Hi hollysully!

Thank you for your reply. I downloaded a text editor that would let me view the line numbers. Line 3191 in ‘newcarExp2.js’ and line 3200 in ‘newcarExp2-legacy-browsers.js’ appear to be the last lines in each file (both lines are blank).

 ![Screenshot 2020-07-01 at 16.05.32](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/d/5/d523bc691c05addfc8fed7a8c2dbe4b29048ae95.png)

 ![Screenshot 2020-07-01 at 16.06.21](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/0/a/0afe9ee762b18cd80823bfebe05b6f812ff938b2.png)

I’m not sure what the issue is here?

---

<div class="post-metadata">

**Author:** ![hollysully](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/hollysully/32/45716_2.png) [@hollysully](https://discourse.psychopy.org/u/hollysully)\
**Post date:** [July 1, 2020, 3:12pm UTC](https://discourse.psychopy.org/t/stuck-on-initializing-experiment-screen/14730/4 "2020-07-01T15:12:49Z")

</div>

hmm, that is beyond me. I would try deleting the extra space in the code and saving it and trying again. That is all I can think of. Good luck!

---

<div class="post-metadata">

**Author:** ![lpxhs5](https://avatars.discourse-cdn.com/v4/letter/l/cab0a1/32.png) [@lpxhs5](https://discourse.psychopy.org/u/lpxhs5)\
**Post date:** [July 1, 2020, 11:19pm UTC](https://discourse.psychopy.org/t/stuck-on-initializing-experiment-screen/14730/5 "2020-07-01T23:19:42Z")

</div>

I found where the missing bracket was needed. Issue solved!
