debug: console.log for page visibility api