I'm using processing.js 1.4.1 and have code like this:

```
new Processing($('canvas')[0], $('texarea').val());

```

How can I overwrite print function (without modifing the code of the library) so it display output in `$('pre')`?

I can overwrite `Processing.logger` (which is used by println in line 4404) but then print don't work until I run println and there is no `Processing.println` function.