fix appending/setting innerHTML with another HTML element