title: I'm adding a js to a Wordpress entry and am not seeing the expected results
body: <p>I am trying to create some code that will randomly change a specific word in using javascript in a wordpress entry. This is what I have in the wordpress entry:</p>
  
  <pre><code>&lt;p&gt;What about a BMW or a &lt;span id="carbrands"&gt; Ford&lt;/span&gt;?&lt;/p&gt;
  
  &lt;script type="text/javascript" src="http://www.artifacting.com/blog/wp-content/uploads/2016/03/wordchanger.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>And this is the js code I am using to change the word "Ford" in the above entry</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;// &lt;![CDATA[
  var changeWord = function () {
    var words = ['Toyota','Nissan','Kia','Seat','Maybach','Rolls Royce','Fiat','Chrysler','Land Rover','Bentley','Jaguar','McLaren','Vauxhall'];
      var word = words[Math.floor(Math.random() * words.length)]
      $("#carbrands").fadeOut(function() {
          $(this).text(word)
          }).fadeIn();
  }
  window.setInterval(changeWord, 3000)
  var changeWord2 = function () {
    var words = ['appendages','extenders','peripherals','legs','grippers','flaps'];
      var word = words[Math.floor(Math.random() * words.length)];
      $("#wings").fadeOut(function() {
          $(this).text(word)
          }).fadeIn();
  }
  window.setInterval(changeWord2, 5000)
  // ]]&gt;&lt;/script&gt;
  </code></pre>
  
  <p>For some reason this is not resulting in the random changing of the word on my wordpress entry. Can anyone give me some suggestions as to why?</p>