Fix for if the clicked element is a child of the a[rel=pushstate]

Search up the parents and see if you find the link, then execute on that