refs bug 976213: incorporating feedback from https://github.com/mozilla/dxr/pull/254
 * swapping out window.location.hash for history.replaceState
 * consistent selection of elements with jquery instead of mixing js & jquery
 * refactored conditional highlighting removal