A better way to do the fallback logic if the jQuery.post() fails for some reason.