Simple AJAX Retry functionality for JQuery