fix small js error