add $attrs to TagDiv call from generateElement