2d JavaScript Particle System with gravity field simulation