fixed js error and progress class