cleaned js. Player can be created with multiple teams.