Lightbox: Added auto-initialization when opening popup through JavaScript

Fixes #6020
Merge pull request #6021 from pjackson28/addlightboxdependency

Lightbox: Added auto-initialization when opening popup through JavaScript