Minor semantic corrections to simulation.js