Particle-based physics simulator for JavaScript