Summary is now adjusted so as not to cut off maths, and it includes mathjax script if necessary