refine PUT AJAX request