fix js bug onclick logout button