I uploaded all the files, changed the addresses in the above code.
It worked find in Rapid Weaver, but not in Safari, Firefox, Epiphany or any other browser - either in export mode or after a full upload.