Fix lightbox to accept instances of jquery