Update CSS to highlight link targets.

Also, fixed mocking in a test.
Refactored common functionality.
Merge pull request #82 from jacebrowning/highlight-link-targets

Highlight the clicked ID after following a hyperlink.