Update and rename test.js to sim.js