// Home video bg
	var vid=document.getElementById('wistia_14');
	var slid=$('.home-slider .image');
	
	var videoListener = (function(vid){
		if($('body').hasClass('home')){
			vid.addEventListener('playing', function(){
					slid.css("background-image", "none");
			});
		};
	});
	videoListener(vid);

javascript