All this is available thanks to the fantastic work done at http://phpjs.org/
There will be redundant functions in this list. Most string, array and numeric functions will be useful in TeXworks Scripting. I have not tried them all yet.
Created with the Personal Edition of HelpNDoc: Easy to use tool to create HTML Help files and Help web sites