Added wait option to mathjax helper