Visualization of flocking/schooling behavior in prey being pursued by predators in JavaScript