I've also noticed that the simulation goes berserk, but only if you leave the page (I mean if you go to an other window or tab). I don't think it's due to Runge-Kutta but rather to the way HTML5/javascript behaves when the page is running in the background.
I have no idea what could be done to avoid it.