fix missing javascript to logout