Reformatted simulation.js