In a very simple jQuery modal, I close the modal by clicking on CLOSE as
$(\'#close\').click(function(e) { e.preventDefault(); $(\'#overlay, #alertModalO
Add the same click listener to your overlay.