Fix bug 1037011: Highlight ToC items when scrolling

Decided to pull request this, because I guess it will bit-rot in my branch otherwise. It is just an experiment. Let me know what y'all think.

See https://bugzilla.mozilla.org/show_bug.cgi?id=1037011
and http://www.screencast.com/t/OFx6h3hmje