Poi simulator (and supporting physics engine) built in JavaScript