Moved team-loading javascript to another file.