Logout in javascript source code