A simple JS tally.