Added javascript to display/hide facebook logout button whenever appropriate.