title: addEventListener('click') not working on a button to close a modal
body: <p>So I have a modal that does not seem to want to close when clicking the close button. This what my current code looks like to show and close the modal as well as adding the modal-backdrop into the DOM and removing it.</p>
  
  <pre><code>const $ = document;
  
  class Selectable {
  
      addElement = () =&gt; {
          const html = '&lt;div class="modal-backdrop show"&gt;&lt;/div&gt;';
          const body = $.querySelector('body');
  
          body.innerHTML += html;
      };
  
      removeElement = elementClass =&gt; {
          let element = $.querySelector('.' + elementClass);
          element.parentNode.removeChild(element);
      };
  
      showModal = () =&gt; {
          const modal = $.getElementById('modal-finish');
          const body = $.querySelector('body');
  
          modal.classList.add('show');
          body.classList.add('modal-open');
  
          this.addElement();
      };
  
      closeModal = () =&gt; {
          const modal = $.getElementById('modal-finish');
          const body = $.querySelector('body');
  
          modal.classList.remove('show');
          body.classList.remove('modal-open');
  
          this.removeElement('modal-backdrop');
      };
  
      init() {
          // Look Up Button
          $.getElementById('btn-look-up').addEventListener(
              'click',
              this.showModal,
              false
          );
  
          // Close the Modal
          $.querySelector('.modal-close').addEventListener(
              'click',
              this.closeModal,
              false
          );
      }
  }
  
  const Selectables = new Selectable();
  Selectables.init();
  </code></pre>
  
  <p>I have a feeling it's because the clickEvent is being registered straight away or something but I'm not completely sure.</p>
  
  <p>Basically the modal opens but the close button is not functioning at all.</p>
  
  <p>I've only ever used jQuery before to do JavaScript so I am using <code>const $ = document;</code> to ease the change over to standard JavaScript.</p>