allow JS modal to execute callbacks on hide()