simplified logout ajax call