Do you forsee using these functions outside of the search bar? If not, we could just make them private to `search_bar.js` by defining them in that file and not exporting them.