Fixed issue if department memberships don't have any teams.
Removing some of the javascript logic from the views.
Merge pull request #48 from biola/fix_grouping_issue

Fixed issue if department memberships don't have any teams.