Added universal AJAX error handler
*Basically this handler will print a generic message if the AJAX ever receives a 500. I've been doing this in a bunch of other places so this consolidates all that