Deals with Firefox problem of keeping focus on rerendered element plus some code cleanup.
Deals with Firefox problem of keeping focus on rerendered element
plus some code cleanup.

mathjax/MathJax-a11y,mathjax/MathJax-RespEq,mathjax/MathJax-RespEq,mathjax/MathJax-a11y