Fixes interoperability issue with Bootstrap modal

Fixes issue #6