try to use javascirpt for logout