$.ajax({
  url: '/getrabbit',
  type: 'POST',
  dataType: 'html',
  data: {color: 'white'},
  complete: function(xhr, textStatus) {
    //called when complete
  },
  success: function(data, textStatus, xhr) {
    //called when successful
  },
  error: function(xhr, textStatus, errorThrown) {
    //called when there is an error
  }
});

