Speed-up counter.js