added fail function for jqXHR object