Attach ajaxError to document (johnou)