Creating pop-ups and modals on your site can be a complicated process. And it often requires a lot of boilerplate code to get started.