Tweak the construction of the modal jQuery plugin.