fix counter.js