Hi
Very encouraged by GLUEscript!
http://phpjs.org/ have rewritten an extensive list of array, string and other php functions into JavaScript. Managed to include many of them as an object much as include() does in GLUEscript in
http://twscript.paulanorman.info -
http://twscript.paulanorman.info/docs/index.html they are very useful.
To keep it easily up-datable in TeXworks I had to create a bogus window = {}; object as their work was originally designed with the browser in mind, so far no problems on vast majority of their standard functions. Mention it in case it saves any one much coding!
I very much look froward to using GLUEscript from projects that allow a system() type command as does TeXworks described in my links above.