Yea - SU tries to clean up some times. If you for instance erase all the entities in a ComponentDefinition that definition will disappear. (Though I'm not exactly sure when SU does that.)
Could you place a CPoint in it?
Another tip which I might not have mentioned in that article, I find using a javascript framework (like jQuery) takes the pain out of the cross-compatibility JS issues.
On Windows the webdialog uses the Internet Explorer version that is installed on the user's computer.
On OSX it's webkit.
The webdialog isn't a limited sub-set, but make use of that the OS has available.