Added callback method to jQuery REST client