ported example-sim to Sim.js framework