Fix failing test
Change order in which innerHTML is cleared