Implement AJAX note saving.