Fix Object prototype problems in jQuery, see http://bugs.jquery.com/ticket/2721