js count update