We only have two places left in support.js where we are using innerHTML to make elements. One is to create this input, and the other is actually to clear a div that is pulled in via a closure. Maybe it makes sense to remove these? That still doesn't fix the XML issues though, I doubt they would survive a complete trip through this code.