Quick addition of isloggedin() helper function to client script.