add some javascript so we can logout