Fix JS bug in comment count js