AJAX write submission