HTML template for win-loss data in Javascript with Mustache
I think it would be much cleaner to put your template in your markup instead of having it as that JavaScript string literal. You can do this by wrapping your template in a script block:

&lt;script id="RowTemplate" type="x-tmpl-mustache"&gt;
    &lt;tr&gt;
        &lt;td&gt;{{teamName}}&lt;/td&gt;
        &lt;td&gt;{{playedGames}}&lt;/td&gt;
        &lt;td&gt;{{wins}}&lt;/td&gt;
        &lt;td&gt;{{draws}}&lt;/td&gt;
        &lt;td&gt;{{losses}}&lt;/td&gt;
        &lt;td&gt;{{goalDifference}}&lt;/td&gt;
        &lt;td&gt;{{points}}&lt;/td&gt;
    &lt;/tr&gt;
&lt;/script&gt;


Next, we can fetch our template HTML from the DOM:

var template = $('#RowTemplate').html();


The Mustache documentation says that we can pre-parse our template:

Mustache.parse(template);


Finally, you will have noticed that I did not include the {{#data}} tags in my template. It seemed to me that name-spacing my data in this way was unnecessary. So my call to render looks as follows:

$teams.append(Mustache.render(template, standings.standing));


However, it looks odd to me that the data for each table row is getting individually loaded via AJAX. If it is possible to load all of the data with one AJAX call, then I would do so. My template would then look something like the following:

&lt;script id="Template" type="x-tmpl-mustache"&gt;
    {{#standings}}
        &lt;tr&gt;
            &lt;td&gt;{{teamName}}&lt;/td&gt;
            &lt;td&gt;{{playedGames}}&lt;/td&gt;
            &lt;td&gt;{{wins}}&lt;/td&gt;
            &lt;td&gt;{{draws}}&lt;/td&gt;
            &lt;td&gt;{{losses}}&lt;/td&gt;
            &lt;td&gt;{{goalDifference}}&lt;/td&gt;
            &lt;td&gt;{{points}}&lt;/td&gt;
        &lt;/tr&gt;
    {{/standings}}
&lt;/script&gt;


This assumes the server response contains a standings array of objects, where each object would correspond to a row in our table:

{
    standings: [
        /*...*/
    ]
}