Added a math jinja macro containing the scripts to load mathjax.
Added missing braces.
Changed name of file from math to mathjax.
Change location of mathjax macro.
Merge pull request #4703 from damianavila/math_macro

Mathjax macro in jinja HTML templates.