The problem is with the HTMLCleaner class, with the following line found in the constructor.
In IE 9 with the doctype included, the widget runs in "IE9 standards mode" and everything is okay.
Without the doctype, the widget runs in "quirks mode". The widget fails and displays an error alert box because it now cannot load the Preferences JS object.
(Again, note this is a IE specific problem).