Sets page title to link title

I also changed innerHTML to textContent for cases in which the innerHTML might contain HTML tags, like <strong> or <span>