fix search.js
Fix the search.js script so the user can use the search bar to navigate through the webpage. It should be able to:
- suggest webpages if the user misspelt their entry. For instance, if they write
masd1
, then it would suggestmass1
. - if the user suggested a page that does not exist (for instance
q
), then it should return a list of webpages that currently exist.