How to embed a YouTube Video in a blog article

Hi

I am new to Middleman and need a tip. I am trying to embed a YouTube video in a blog article by using a javascript that loads and controls the video. When I add the div and script to the blog article the script is displayed as text. What trick do I have to use to use unique javascripts in an article?

Thanks

Is the script inside <script> tags?

But, would it not be easier to just use the embed code from YouTube?

Thanks but I did use the script tags. I am sure I am making some sort of obvious mistake. It is good to know that the script ‘should’ work. I would use embed but I need more functionality than the embed tag provides.

Does the page validate? http://validator.w3.org

What is the doctype?