Update counter.js