prevent page js error leakage