Updated search options
added comments to js file
added more comments, added message for invalid search to html if errors in api response is fetched