console.log("public") function playVideo(){ console.log("playing video...") var video = document.getElementById("homeVideo"); video.play(); }