Very simple physics engine in JavaScript.