<code> ...== ... +50 </code> fails, when the highlighted comment is the first one (<code>window.pageYOffset + 40</code>) or the comment is one of the last ones and the browser isn't able to scroll down ( +200 is just a rough guess). Any ideas how to improve this test?