Minor improvements when invoking mathjax