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.