Is there any way to insert latex in a JavaScript quiz web-app

I am creating a JavaScript web app in which questions.js is a file from which questions are being fetched. Now i need to insert math equation in the questions and for that i am using Latex but the problem is that only the first time the script tag latex loads and if being clicked to next button the equation in the next question cannot been seen please help.

Here are some SS :
When Loaded First Time:
enter image description here

When Loaded For The Next Time :
enter image description here

This same goes on for the rest of questions



const quiz = [
    {
        q:'Which Month Comes Right Before June? \(\frac{-b \pm \sqrt{b^2-4ac}}{2a}\)',
        options:['may','september','july','august'],
        answer:0
    },
    {
        q:'Which Month Comes Right After Febrary? \(\frac{-b \pm \sqrt{b^2-4ac}}{2a}\)',
        options:['may','september','july','march'],
        answer:3
    },
    {
        q:'Which Month Comes Right Before November? \(\frac{-b \pm \sqrt{b^2-4ac}}{2a}\)',
        options:['may','october','july','august'],
        answer:1
    },
    {
        q:'Which Month Comes Right Before January? \(\frac{-b \pm \sqrt{b^2-4ac}}{2a}\)',
        options:['december','september','july','august'],
        answer:0
    },
    {
        q:'Which Month Comes Right Before March?',
        options:['december','febrary','july','august'],
        answer:0
    }
]

For Latex I Am using Hostmath : https://www.hostmath.com/Math/MathJax.js?config=OK