From http://stackoverflow.com/questions/3452546/javascript-regex-how-to-get-youtube-video-id-from-url