Fix https support for youtube videos

It checks the location protocol and add matching matching protocol to
the embedded youtube link

This worked for me. See if that would also do for you.

Ps: It seems that TextMate messed up the indentation. Sorry about that!