Use Visibility.js to stop and start polling when window is inactive