add errorHandler to jsonp and ajax calls