Replace $.ajax().success with $.ajax().done.

That was [deprecated in jQuery 1.8](http://bugs.jquery.com/ticket/9399)
Merge pull request #27 from dangoor/master

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