fix minor js error.