One small goof on my part, should be: `and not (document.hidden...`