Create counter.js