Agent-based flocking simulation (Reynolds, 1985) written in JavaScript.