It’s easy to check, if a user is logged in using WordPress PHP functions. But what to do, if you want to check the login-stat using JavaScript?