A JavaScript simulator of the solar system