Fixed checking to ensure it checks parents all the way up the tree as previously it would only check the target element if it was an 'a' element. This caused issues if you actually had other elements inside the a, it would trigger the anchor but not the smooth scroll.