Finished debugging the search.js file || Now throwing error when search is not long enough