A simple js engine for rigid body physics simulations