Search bar JS is now executed when the document is loaded, and therefore works.