Market Day.
I have written a new library called 'Autonomous Agents` which is a Javascript version of the AI for Games library available for Processing Java mode.
You can find the library on github. At the moment there is little or no documentation it has the exactly the same features as 'AI for Games' so its guides show the capabilities of 'Autonomous Agents'.
This example uses the steering behaviours, wander and wall avoidance for the population, and path finding for the boats.
NOTE: If you are watching this on an iMac using Firefox you might be getting some jerkiness in the population movement. If this happens to you try Safari, I got very smooth movement when I used it.