js fix for lightbox