separated lightbox.js file