AJAX request for finishing book