Move teams.js to lib directory