fwiw, here's my attempt. It's stable enough to be viewed once in
qc, but not to use as a screensaver (which was the original aim).
So far, we found two bugs in JavaScript:
1) Javascript inputs may be incorrectly set to "undefined" on first
run instead of 0 if the input is connected to a numerical value that
is 0.
-> workaround: check for undefined inputs with:
if(inputs[0] == undefined)
...
2) JavaScripts may corrupt memory when writing more than once to the
same output e.g.
outputs[2] = 2;
outputs[2] = 3;
-> workaround: use temporary variables:
var temp = 2;
temp = 3;
outputs[2] = temp;