extract choice of visibility change source and default visibility state
use stub defaults for visibility if window.document is not available
travis runs tests with a timeout of 5s
0.8.7