better support of jQuery ajax fail