Hi @VegasBob,
The current javascript mode is not compatible with the latest version of processing.
Instead you can use p5.js to code in javascript.