Processing.js and some JS