We inherit decades of experience typesetting mathematics when we incorporate MathJax as one more dynamically loaded plugin. The MathJax javacript works trivially client-side with static html and has a sophisticated API for dynamic environments like ours. We'll learn a thing or two from them. Thanks. website
YOUTUBE 7_XXRon3CtA Ward shows typesetting plugin