bPopup is a lightweight jQuery modal popup plugin (only 1.34KB gzipped). It doesn't create or style your popup but provides you with all the logic like centering, modal overlay, events and more. It gives you a lot of opportunities to customize so it will fit your needs.
when a popup with option 'scrollBar' set to false being closed, resume html overflow to 'visible' instead of 'auto'.