title: JavaScript in my wordpress page
body: <p>Following is my Js code which I have been trying to use in my wordpress page but its not working. Kindly let me know how to write it inside my wordpress page. The main idea of the folllowing function is to unload the Vimeo video which opens up in a modal of plugin <code>easy modal</code> when user click on close</p>
  
  <pre><code>&lt;script src="http://a.vimeocdn.com/js/froogaloop2.min.js"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript"&gt;
  var iframe = $('.vimeo-player')[0];
  var player = $f(iframe);
  
  $('.close-modal').click(function() {
      alert('stoped');
      player.api('unload');
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>You can clearly see the code works fine in this fiddle : <a href="http://jsfiddle.net/8CV2S/161/" rel="nofollow">http://jsfiddle.net/8CV2S/161/</a></p>
  
  <p>Iframe Code:</p>
  
  <pre><code>&lt;iframe class="vimeo-player" src="http://player.vimeo.com/video/76079" width="1000px" height="500px" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen&gt;&lt;/iframe&gt;
  </code></pre>