Logout from js ui