Replace innerHTML with appendChildren