Minor refactors to the tribes.js.  It really needs some love.
- RMUR