fixed 'Attr.textContent' is deprecated warning