Fixed small js error