The script works, but the cut-and -paste has to take a landing at Notepad or something similar first. Just cutting and pasting in the html of front page for example just shows the code on screen. It's all those fomatting characters again. Just drop the script in notepad, cut from there and paste in the html and away you go.
No sign of being able to save the results to a file, although they are visible using the "view source" facility on IE.