Got the curl call for teams working...

I also added some logging to the teams.js api