There have been no responses to this query. I guess I can understand why. See the original issue. Perhaps if I cast the problem differently:
What MOODLE configuration items might prevent Java-script/classes imbedded/referenced from an html script from running as a MOODLE resource?
Any suggestions would be greatly appreciated.