Adding jQuery feature detection to support IE8/jQuery 1.9