Old jquery support

I have had to change the way to get the tagName to make it work with jQuery < 1.6