reuse link element which has same href (ignoring querystring and hash)

querySelector is not available is old browsers...