Changed the element, which was listened on to document.getElementsByTagName('title')[0].