Replace use of innerHTML