fix for problem when evaluating the global context

when creating a .chm file, the content of script elements get a comment added, which looks like 

    <script type="text/javascript" src="..."><!----></script>

MathJax tries to evaluate the "<!---->" expression and crashes. A default behavior should be implemented.