use classList instead of className
use DocumentFragment instead