Obtener id video youtube From http://stackoverflow.com/questions/10591547/how-to-get-youtube-video-id-from-url
var url = "https://www.youtube.com/watch?v=zKx2B8WCQuw";
var videoid = url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);
if(videoid != null) {
console.log("video id = ",videoid[1]);
} else {
console.log("The youtube url is not valid.");
}