Hi Bruce
No page does not work,
but you are right,
the position of the script does not seem to matter if it's outside the body tag.
I moved the script to inside the tags and saved the generated HTML to a static file and then loaded the static file.
Attached the error.
Something else going wrong,
I will investigate further
thanks
Johan