Do not animate icon when page is not visible. Fixes #18.

isPageHidden will always return undefined for browsers that do not support page visibility, but we shouldn't have to worry about those browsers since we don't support them anyway.