While trying to upload processing sketches, the biggest challenged I am finding is to make it compatible with Squerspace. I found this tutorial by Joseph Harrington where he explains some interactions with processingjs and jQuery. I spent a minute copying the code and a couple of hours making it show here.
Text UI Demo
The Following Sketch was written by Joseph Harrington
A detailed tutorial can be found here: Controlling Processing.js with jQuery UI