jQuery client : ajax modifications to fit REST server answer