update mathjax to wait to display content until end signal