obtimize count timeout js