Well, when javacript window asked for the YouTube url I put:
That address is to the video on the YouTube site(Which redirects you to it when put in the address bar) and not the video file itself.
This url that worked is this:
This url is to the video file itself, which is why it works.
You can see the difference for yourself when you look at the link. It took me while to realize it; that's what you get when you work on these things late at night. :-)