(Joyce): implemented logout with jQuery