Check value after defining document.hidden