editing js functionality for highlighting of errata.