Function not recognizing when embedding videos

Embed is the name of your JavaScript object? Can you post the code?