added counter.js