AJAX for course statistics