JS to make nested anchor links go to specific section