Larry,
You are right, its a javascript. Ok, save the same as I mentioned above and remember where you put it. Then, go to the scripts tab along the top and click. I am not able to access the PI work screen at the moment, but near the bottom, about three or four options up, just below a dividing line, is an option to execute script (though the words may be slightly different). Click on that and then navigate to where you saved the script. Just click on the javascript icon in that folder and the tool should open right up.
Hope that helps,
Best,
Jim