added failure reporting mechanism for jQuery.getJson()