replace it with  
$.get(window.app.root + 'stats/totals', function (data) {