a verlet particle engine in javascript