for some reason htmlanchorelement.search is undefined on some sites?