SIMA-3966: Added workaround for IE-related bug

The fix is:
code=code.replace("<!-- -->;\n","");
Added just before evaluating JavaScript. Will stop any error "SCRIPT1002: Syntax error" in Internet Explorer, when (faulty inserted) <br>-tags are inserted into the math-markup.