Simultaneous Simulation in Javascript