Physics for JavaScript Games Animation and Simulations