clearing fatal js error on admin pages when ajax is invoked