define([
	'jquery'
], function (
		$
		) {
	$.fn.activateYoutube = function(trigger) {
		if (trigger === undefined) {
			trigger = true;
		}
		$('.youtube', this).empty().each(function(index, element) {
			$youtube = $(element);
			var thumbsrc = "//i.ytimg.com/vi/" + $youtube.data('id') + "/hqdefault.jpg";
			$youtube.css('background-image', "url('"+thumbsrc+"')");
			$youtube.append($('<span class="fa-stack play"><i class="fa fa-circle fa-stack-1x"></i> <i class="fa fa-youtube-play fa-stack-1x"></i></span>'));
			if (trigger) {
				$youtube.click(function(event) {
					$(this).html('<iframe src="//www.youtube.com/embed/' + $(this).data('id')
				        + '?autoplay=1&'+$(this).data('params')+'" allowfullscreen>');
				});
			}
		});
	};
	return $;
});
@@ -309,87 +309,394 @@
 %0A%09%09%09
-$youtube.css('background-image', %22url('%22+thumbsrc+%22')%22);%0A%09%09%09$youtube.append($('
+var embedUrl = '//www.youtube.com/embed/' + $youtube.data('id') + '?autoplay=1&'+$youtube.data('params');%0A%09%09%09$youtube.css('background-image', %22url('%22+thumbsrc+%22')%22);%0A%09%09%09$youtube.attr(%7Bitemprop: 'video', itemscope:'', itemtype:%22http://schema.org/VideoObject%22%7D);%0A%09%09%09$youtube.append($('%3Cmeta itemprop=%22thumbnail%22 content=%22'+thumbsrc+'%22 /%3E%3Cmeta itemprop=%22embedUrl%22 content=%22'+embedUrl+'%22 /%3E
 %3Cspa
@@ -909,106 +909,18 @@
 rc=%22
-//www.youtube.com/embed/' + $(this).data('id')%0A%09%09%09%09        + '?autoplay=1&'+$(this).data('params')
+'+embedUrl
 +'%22 

Add microdata to youtube embeds