You may try simulator at http://kenjisgalaxy.html.xdomain.jp/
OK, I understand it's a two-body problem and applying Runge-Kutta method. (Will it complete?)
We started learning JavaScript. It'll be a long way...