function do_auth() {
    $.getJSON('/auth', function(json) {
            console.log('Auth success');
            auth_token = json.auth_token;
        }).fail( function(json, textStatus) {
            console.log('Auth fail: ' + textStatus);
            window.location.href = 'pages/auth';
    });
};
