Diffusion limited aggregation in JavaScript