fix(embed): Checking for lightbox and embed before loading JS libs when ...

...requested through AJAX.

Refs #7107.