Update simulation.js