[Bug]: Only the first TeX comment being over-laid

Must move overlay.counter forward even when adding a non-event comment.
The counter goes into defining the <script> id and MathJax engine needs
it to be different to render different TeX comments