Javascript for an embedded Brave search box?

I have a simple website which exposes some old email archives. I did it originally to expose those archives to search engine crawlers and eventually added a Google search box to allow visitors to more easily search within the archive. The JS is pretty trivial:

<script>
(function() {
var cx = ‘014074023351276583159:sylo6xs67hu’;
var gcse = document.createElement(‘script’);
gcse.type = ‘text/javascript’;
gcse.async = true;
gcse.src = ‘https://cse.google.com/cse.js?cx=’ + cx;
var s = document.getElementsByTagName(‘script’)[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>

but it does rely on Google. I’d like to get away from that. Does Brave have a hunk of JS to implemnent a similar embedded search?