fixed js error showing