Edits ajax request