Using javascript to make a particle engine.