Page Visibility API

Keep track of the current tab title as you switch back and forth; it will change to this document's current visibilityState!