Updated JS and HTML to make a search and sort applicaiton