Use Array.join instead of string concat for github_file
Refactor the sidebar

More code reuse, less manual building of HTML.