Added backward compatibility to jQuery 1.3