Made div ids more unique by incrementing a counter and adding that number to the id.