Does textContent === 'close' actually do anything here?