Update bootstrap-modal.js

Hello, I needed to run a JS function to close the modal, and to facilitate the use of this option, I did an implementation for the user to place the function in the data-on-hide. Follow my suggestion and would also be interesting to make the other events like show.