Revising $.ajax request