■
* youtubeのcallbackはglobalに置こう
I have the answer, separate out this portion of the script and put it in the head in its own script tag. OMG, finally
<scripttype="text/javascript"language="javascript">function onYouTubePlayerReady(playerid){
ytp = document.getElementById('ytplayer');
ytp.mute();};</script>