A simple Verlet physics engine written in javascript