Move MatJax script to layout