fix event binding in modal.js

BS3 commit f5ce661