Adding library and partials.
Minor code changes to index.html and sidebar.html