added main.js logic to get teams and tests
added missing files