Update modal.js

To work with bootstrap 3.3.1. Ref #2970