John Resig (of jQuery fame) has ported the Processing visualization language to JavaScript .
The examples are remarkable, check them out (but check the browser issues John discusses).
John has a little confession :
The first portion of the project was writing a parser to dynamically convert code written in the Processing language, to JavaScript.
This involves a lot of gnarly regular expressions chewing up the code, spitting it out in a format that the browser...