function do_logout() { $.post( "<%= url_for('on_logout') %>", function() {}); }