Type attribute of Html node can not be changed in jQuery/Firefox, appear exception