How to make a javascript script that shows Google images from a ZIM TextInput ["search any png image"]?

It would be cool if in ZIM we can find images directly to use in games
this idea is an inputbox 'mario', 'dino' can be a mario.png and dino.png from the internet
I found this article where it should be possible but I don't know how.

solution would be a link to

so npm , but how to integrate it in ZIM?

so how to make it easy into ZIM?