Gravitational motion simulation with html elements, javascript, and numeric.js