Add logging for jquery errors