Create simulate.js