Fixed bug causing MathJax to be disabled after forced browser refresh (ctrl+f5).

This changes the behaviour of rendered elements: only DOM elements with a class 'tex' will be rendered on startup.