Updated Team JS

Cleaned up the code