moved counter out into separate js for readability
initial counter to 0
Merge pull request #1 from ckampfe/master

Added a counter reset!