Add IE8 support (Does not support attr('type', 'new-type')) http://api.jquery.com/attr/#entry-longdesc