fix js error for ie8