dynamically check the ':target' pseudo-class instead of saving and caching the 'location.hash'