add timeout to render mathjax