Fix localsimulation.js