Need a link to a url using a cms item text

I have a heading that brings in random cms item names. I want to make that heading a link to google images and append the current name so when teh user clicks it basically takes you to google image search + name.
How can I pull this together I know I can - I just not sure the scripting.

I’ve started with

onclick="window.open('https://www.google.com/imghp?hl=en?text= encodeURIComponent(document.title)); return false;"


Here is my site Read-Only: LINK