convert lightbox javascript from ext to jquery

fixes various sizing bugs