add teams javascript

fixes #46
also #33 possibly