Javascript simulation of gravitational interaction between small bodies