logout functionality works

sometimes buggy; for some reason, an alert (javascript) statment makes
the difference. Going to try adding some sort of brief pause or modal
window.