The base file should contain no custom JavaScript since it is inherited in almost all files in GN2. It should only include what is necessary. As a result, we need to move the global search from the base file to the index page, which renders the GN2 home.
See the PR that seeks to fix this:
It was agreed that global search should be a feature for all pages, As such all files need to inherit from the global search which defines the global search.