From http://getbootstrap.com/assets/js/docs.min.js