javascript roster selection working