Javascript Boids
See
coderholic
for full implementation details