Because MathJax can't alter the page until it is actually loaded, you will see the original AsciiMath markup before MathJax has a chance to typeset it. There are a couple of possible approaches to dealing with this, though none is entirely satisfactory.
One is to enclose all the math in tags that have a CSS class that is initially set to visibility:hidden (don't use display:none, as the results will be poor), and then set the CSS for that class to visibility:visible when MathJax is finished. Here is one way to accomplish that:
<!DOCTYPE html>
<html>
<head>
<title>Hide AsciiMath Until it is Typeset</title>
<style id="hidden_math">
.amath {visibility: hidden}
</style>
<script type="text/x-mathjax-config">
MathJax.Hub.Queue(function () {
var sheet = document.getElementById("hidden_math");
sheet.disabled = true; // disable the style sheet that is hiding the mathematics
});
</script>
<script type="text/javascript" src="../MathJax/MathJax.js?config=AM_HTMLorMML"></script>
</head>
<body>
<span class="amath">`(x+1)/(x-1)`</span>
</body>
</html>
This will prevent the AsciiMath from being seen, but you will initially see blank spaces where the math will eventually go. An alternative is to hide the entire page until the math is typeset. For example
<!DOCTYPE html>
<html>
<head>
<title>Hide Entier Page Until it is Typeset</title>
<script type="text/x-mathjax-config">
MathJax.Hub.Queue(function () {
document.getElementById("hide_page").style.visibility = "";
});
</script>
<script type="text/javascript" src="../MathJax/MathJax.js?config=AM_HTMLorMML"></script>
</head>
<body>
<div id="hide_page" style="visibility:hidden">
`(x+1)/(x-1)`
</div>
</body>
</html>
Here the main container <div> is set to have visibility:hidden and that is removed when MathJax is done typesetting. This is reasonable if there is a small amount of math on the page, as otherwise the user might have to wait a long time before the page is visible.