function close () {
  if (open === true) {
    document.getElementById('closeButton').addEventListener('click', function (e) {
      e.preventDefault();
      document.getElementById("container").remove();
    })
    open = false;
  
  }
}
// close image event listener, remove elements from DOM
close image event listener, remove elements from DOM
close image event listener remove elements from DOM
function close () {
  if (open === true) {
    document.getElementById('closeButton').addEventListener('click', function (e) {
      e.preventDefault();
      document.getElementById("container").remove();
    })
    open = false;
  }
}
function close ( ) { if ( open === true ) { document . getElementById ( 'closeButton' ) . addEventListener ( 'click' , function ( e ) { e . preventDefault ( ) ; document . getElementById ( "container" ) . remove ( ) ; } ) open = false ; } }
close image event listener, remove elements from DOM
close image event listener remove elements from DOM