Refactor stats AJAX call URL.