Hi Ken,I think I see what you are recommending. But one of the facts of these external programs is the lack of multi-processing in their JS interpreters.
If I sent over one program to maintain state and issue periodic nudges, that would tie up the JS interface for all other possible needs.
Instead, by offering periodic snippets to the JS engine, I leave it mostly available for all other uses. The nudges themselves take only a fraction of a second, issued once per minute.