title: Why do I keep getting .addEventListener is not a function?
body: <p>So I'm working with a JW Player and everything is working great except for one piece of functionality I'm working on. When I run the code I get a console error:
  <strong>Uncaught TypeError: upTop.addEventListener is not a functio</strong>n </p>
  
  <p>Here is the code: </p>
  
  <pre><code>                var upTop = document.getElementsByClassName('playlist-item');
  
                  upTop.addEventListener('click', function() {
                  jwplayer.setup({autostart: true, floating: {dismissable: true}});
                         window.scrollTo(0, 0);
                  });
  </code></pre>
  
  <p>Is there some kind of syntax error I'm missing here? </p>