bootstrap.js: Fixes for Safari