fixed js error in jquery