h/Login';
        var data = {
            userName: username,
            password: password
        };
        return post(tokenUrl, data)
            .then(function (token) {
                tokens[username] = token.auth_token;
            });
    }

    document.getElementById("connect").addEventListener("click", function (event) {

        document.getElementById("connect").disabled = true;

        var username = document.getElementById('username').value;
        var password = documen