There's a faction of Processing known as Processing.js; it's javascript.

Edit: Ohai, thar!