jQuery 1.9 compatibility fix

(see http://bugs.jquery.com/ticket/13223)