Replace use of $.ajax().success()

That was [deprecated in jQuery 1.8](http://bugs.jquery.com/ticket/9399)