Update counter.js to the latest version