fix minor js error