Update for jquery 1.8+
Fix a bug with the default samples route upon failure.
Update for jquery 1.8+.  Replace alert() with error state presented in render().