fixed the "NOT SHOWING CHARTS IN INDEX ERROR"
Refactored, styled and commented the code and fixed the links in the search results