use ng-click to handle the logout instead of jQuery