Fixing type with jQuery 1.8.3