Update main.js

Removed simulation run, as it is recursive and can crash the call stack.