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

Refs #7107.
Merge pull request #7109 from brettp/embed_activity_ajax2

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