Ported GravityAndOrbitsModel.js, see #138