Updated JS to fix search fallback function

The search was being hidden all the time. Fixed the function to only
hide when GSE properly loads.