Javascript teamcity adapter using REST