Code refactoring. Roster.js

methods moved to prototype