Fix another possible sim.js initialisation issue