Revised onComplete MathJaxLocal.js callback.