Update indext to use sim.js