This version is old school.
Please find jQuery plugins on npm.
jqModal
by Brice Burgess
jqModal helps you display modals, popups, and notices. It is flexible and tiny, and provides a general-purpose base for all your windowing needs.