Handle head properly in another location when looking for script tags.  Issue #1016.
Handle head properly in another location when looking for script tags.  Issue #1016.

anueshenxing/MathJax,jeremykenedy/MathJax,wikimedia/MathJax,jeremykenedy/MathJax,thomasjm/MathJax,Edraak/MathJax,ManrajGrover/MathJax,GerHobbelt/MathJax,dpvc/MathJax,mcanthony/MathJax,thomasjm/MathJax,jinntrance/mathjax,perseoq/MathJax,anusornc/MathJax,thomasjm/MathJax,mcanthony/MathJax,anueshenxing/MathJax,jinntrance/mathjax,cheerfulstoic/MathJax,minrk/mathjax-component,nvp2211/MathJax,cben/MathJax,nvp2211/MathJax,Edraak/MathJax,cben/MathJax,thomasjm/MathJax,cheerfulstoic/MathJax,perseoq/MathJax,minrk/components-mathjax,anusornc/MathJax,Ivanwangcy/MathJax,minrk/mathjax-component,minrk/components-mathjax,ManrajGrover/MathJax,Ivanwangcy/MathJax,GerHobbelt/MathJax,thomasjm/MathJax,physikerwelt/MathJax