Move team list JS code into controller
Lint