Modified to allow multiple counters in single page.

Due to the use of IDs when using multiple counters in a page, the animations would always trigger on the first counter, rather than the correct counter.

More specific IDs have fixed that problem.