Added support for HTML5 Visibility API (only in some modern browsers)
Added a few files missed in previous commit