Better handling of Bootstrap 3 modal

Fixed issue with Backbone >= 1.1