Using youtube API rather than html embedding

Hey so I've been trying to embed our videos using the youtube api rather than just embedding the url in the html code. I have it working here. I needed to install the gon gem in order to pass the ruby variable vid_id from the controller into the js code for the youtube player. Check it out. One bug right now is that the gif button doesn't work, but reloading the page does.