Topic: jquery ajax call

so I am using jquery and updating a dom element with

$('#thelist').replaceWith("<%= escape_javascript(render(:partial => @deals)) %>");

this works fine except it is not hitting the server so if @deals is updated, it is not refreshing and showing the latest version. My question is how to ajax this thing so that it will update to the latest version of @deals. The full code is:

onPullDown: function () {
            setTimeout(function () {
           
                $('#thelist').replaceWith("<%= escape_javascript(render(:partial => @deals)) %>");
                myScroll.refresh();       
            });   
        },
thanks in advance!