make test2.js run simulations automatically