Fixed the HTML printer and added the standalone version of the script.