I am loading javascript from an external file retrieved via a XMLHttpRequest, but the document.createElement call is returning a Element rather than a HTMLDivElement that I want. (Specifically, the element it is returning has no style member.) I need to figure out a clean way to access the document.