Removed js response from logout function