Console element bug

When sim parameter is sent in the url, before loading the simulation, now, we checked the dom is ready. Otherwise, random errors may appear because, for instance, the console hasn't been loaded yet.