Change the link by manipulating the DOM

I’m back with a problem I posted about 2 days ago. Looks like I wasn’t too explicit.

In a DOM html document, in the container, in the body I have a paragraph that refers to a certain site (ex Wikipedia).

I want to make a script for this paragraph that change the reference in Wikipedia’s “science” hyperlink to a Google search for science images.

The idea is that must change the link by manipulating the DOM.

Many programmers are lovers of science

		<script>
			var Title = document.getElementById('master');
			document.getElementById("demo").innerHTML = Title;
			var Change = " <a href="https://www.google.com/" target="_blank">science</a>";
			eTitel.innerHTML = eTitle;
		</script>
</div>

The above script, which I conceived, does not seem to be the optimal solution.
Can anyone help me with a script appropriate to the requirement?

		<p id="master">
			Many programmers are lovers of
			<a href="http://en.wikipedia.org/wiki/Science">science</a>
			
		</p>
		
		<script>
			var eTitle = document.getElementById('master');
			document.getElementById("demo").innerHTML = eTitle;
			var sChange = " <a href="https://www.google.com/" target="_blank">science</a>";
			eTitel.innerHTML = eTitle;
		</script>
	</div>
</body>