Moving out scripts to oneteam.js