title: How to run custom HTML/JS/GSAP inside Visual Composer/Wordpress?
body: <p>I am attempting to use custom JS and custom html within VC, but am having trouble correctly calling the JS code.
  My goal is to be able to use the Greensock Animation Platform.  I am starting with simple code to get this working.
  In Visual Composer, I have setup a "Raw HTML" element, and also a "Raw JS" element.
  When I launch the page, the HTML shows up correctly, but most of my scripts don't execute.
  The default script that is provided by VC works:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt; alert("Enter your js here!" ); &lt;/script&gt;
  </code></pre>
  
  <p>However, this simple script fails:</p>
  
  <pre><code>&lt;script&gt; function onReady() {
  console.log('Here')
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>Also, a simple GSAP script fails:</p>
  
  <pre><code>&lt;script type=​"text/​javascript" src="http://cdnjs.cloudflare.com/ajax/libs/gsap/1.15.1/TweenMax.min.js"&gt;&lt;/script&gt;
  &lt;script type=​"text/​javascript"&gt;
      TweenMax.set('#slide3', {opacity: 0});
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>My current attempt is here:
  <a href="https://themilkmob.org/zgsaptest01/" rel="nofollow noreferrer">https://themilkmob.org/zgsaptest01/</a></p>
  
  <p>A screengrab of the backend editor:<img src="https://i.stack.imgur.com/hXQH4.png" alt="enter image description here">
  Thanks.</p>