Replace `done` by `success` in jQuery example