Compatibility issues with bootstrap 2.3 and later

This makes our event code compatible with newer bootstrap versions, and avoids monkey patching for the newer versions. It appears no longer to be necessary.