Abstract launch logic into lightbox.js