code: function(){
        if(window.localStorage){
          localStorage.clear();
        } else {
          var _splice, cookies;
          // Read for session cookie
          document.cookie = 'cloudmineTodoSession=none; expires=' + new Date(0).toUTCString() + '; path=/';
        }
  
        // Reset everything
        $('#todo').empty().hide();
        $('#todo_header, #new').hide();
        $('#login, #or, #register_button').show();
        $('#login_button').val('Login').show();
        $('#register_button').val('Register').show();
        $('#login_email, #login_password').val('');
        $('#login_email').focus();
        $('#priority_buttons').html('Priority:');
      }
docs: /*
  process_logout
  
  Called by todo.logout_user. Clears the session cookie and resets the login screen.