Refactored the search results javascript
Wrote new styles for search result