# Experiment stuck on initialising - Pavlovia

**URL:** <https://discourse.psychopy.org/t/experiment-stuck-on-initialising-pavlovia/12043>\
**Category:** Online experiments\
**Created:** [April 3, 2020, 2:03am UTC](https://discourse.psychopy.org/t/experiment-stuck-on-initialising-pavlovia/12043 "2020-04-03T02:03:01Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![jonathan.kominsky](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jonathan.kominsky](https://discourse.psychopy.org/u/jonathan.kominsky)\
**Post date:** [April 3, 2020, 3:31pm UTC](https://discourse.psychopy.org/t/experiment-stuck-on-initialising-pavlovia/12043/5 "2020-04-03T15:31:22Z")

</div>

They are not, no import statements work in javascript right now. You’ll have to remove all of the import statements in all of the “Begin experiment” code components.

It depends what you’re trying to do with them, mostly. For shuffle, you have to create your own shuffle function. You can find a simple one that you can copy into a code component here: [Reference error: shuffle is not defined](https://discourse.psychopy.org/t/reference-error-shuffle-is-not-defined/11556/2)

For any other sort of randomness, you can just use Math.random, which is built in to javascript.

For time, I’m not sure what you’re trying to do with it, but there are various util.Clock functions that should work.

---

_[View the full topic](https://discourse.psychopy.org/t/experiment-stuck-on-initialising-pavlovia/12043)._
