Functions that extend the modal plugin