A cross-browser plugin for using the Page Visibility API