Add MathJax as a Local Library

Hi, we are having performance issues with our application and as one option we would like to add the MathJax scripts locally to the source code from the CDN and we were wondering how difficult it would be to do this?

If possible, give the steps for connecting this library.