Good news. I emailed O'Reilly technical support and overnight got a new script that worked perfectly. It's just what I needed when I needed it.
I'm not happy that I had problems with the book script, and the updated web site script, but very pleased with the technical support. Thank you Stephen R. Figgins for the helpful email.