Converting Processing to Processing.js... please help?

Processing loadImage() takes a filename and extension (String,String) … don’t think a callback func is going to work.

Also, you still have function keyword, needs void … and no preload() in Processing.