Added preventDefault to more example links in the documentation

Fixes 8990 -- the old CSS selector used did not cover all cases of
example hashtag links that needed the preventDefault method. I
expanded this to cover .bs-example hashtag links as well, which
fixes the reported Scrollspy issue