making a bunch of the codrops modals work more like the originals