handle ajax errors (closes foodcoops#300)