call JS on JQuery popup close button ‘X’

I have a Jquery pop up:

Recent Posts

Categories