avoiding LaTeXML's extra brace wrappers for scripts via some heuristic regexps