fix(embed): embed jquery target is now searched for instead of assuming last class

Fixes #6723