In reply to your second question, the PNS knows nothing about Javascript - only the browser does. So you just have to know how to make Javascript do what you want to the browser - there are zillions of online tutorials for this, just search for "Javascript tutorial" and pick one you fancy. Type the script into your htm/cgi pages and the PNS will just send it back like any other text.