title: Changing Javascript method to Jquery
body: <p>So I have the following Jquery calling a Javascript method</p>
  
  <pre><code>$j("a.Pinterest").attr("href", "javascript:void(addScript());");
  </code></pre>
  
  <p>And this is the Javascript Method</p>
  
  <pre><code>   function addScript() {
      var e = document.createElement('script');
      e.setAttribute('type', 'text/javascript');
      e.setAttribute('charset', 'UTF-8');
      e.setAttribute('src', 'http://assets.pinterest.com/js/pinmarklet.js?r=' + Math.random() * 99999999);
      return document.body.appendChild(e);
  }
  </code></pre>
  
  <p>I was wondering if there was a way to have it all in Jquery ?</p>