in case anybody else runs into this silly problem, its because you (or me, TWICE NOW!) tried to just cut-paste the example from the website, rather than just run the example straight from the demo folder, which already works great and is completely debugged.
IMHO, its far better to start with a nice working example such as the ones that HTML elements have kindly provided, rather than to needlessly struggle like i am prone to doing.   There is nio need to “reinvent the wheel”, so to speak.
thank you once again to the fantastic staff at htmlElements.