Thanks for the info.
What I did was to take a Milonic example, make sure that it ran properly in regular HTML, and then took the code and put it into SharePoint. I have done this with other things and is a proven way to get a basic script into SharePoint.
The whole SharePoint environment is ...