Grading works with AJAX calls