Generate plasma fractals in JavaScript