fixes #1. 0 info if on main page.

now the main page contains a link to the repo tab. the alternative
solution would be to make an ajax request to get the info, but that
seems like overkill. this script has kind of been outdated- it was
made originally for the profile page 2 versions ago.