var video = document.getElementById("homeVideo");
video.addEventListener('timeupdate', function () {
video.controls = false;
if(video.currentTime >= 22) {
video.pause();
$("#homeVideo").css({'height': '0', 'opacity': '0'});
}
});