Update simulator.js