implement logout.

use latest 1.x jquery.

refine UI.