Readd tag_name attribute to the element.

Accidentally nuked when changed to jquery.