A JavaScript counter that uses a timing function to move towards it's destination.