Refactor projects.js

This is a slight nuance that I missed in code review; _only_ if a commit is currently being viewed should it be pushed into branches list...

![screenshot 2014-09-04 06 19 13](https://cloud.githubusercontent.com/assets/129761/4147843/fc6758ee-341c-11e4-9e96-e8c1981f6187.png)