Fixed issue #9 and counter.js