moved counter.js