Source code for "Physics for JavaScript Games, Animation, and Simulations"