Load library prior to HTML
Using ng-if to display commit or diff view.