Add IE8 support (Old browser... I know :D)

IE 8 compatibility was required for my project, I share my little modification to be totally working on this old browser (I don't know if it important for your or not :smile: ). 

IE (6-7 and) 8 does not support attr('type', 'new-type')) : More info http://api.jquery.com/attr/#entry-longdesc.