use regex to put linear fit in Tex for proper Mathjax rendering
-Add mathJax\n-remove unnecessary variables\n-add Tex formulas for linear fit\n- unhide/hide div\n\n-Still need to remove previous formula if new fit is selected