Footnotes are using a fragment format with a colon inside ("#fn:1" for
example). However, ":" is a special character for jQuery
(http://api.jquery.com/category/selectors/), thus the target anchor is
never found and the scrolling does not happen.
This change selects the right target element using vanilla Javascript to
bypass special characters that could be in the fragment part.