Hm, `document.write` gives me the chills. Doesn't karma provide some way to initialize an HTML fixture or something? Did you see this pattern somewhere else?