Anchor scroll offset

If we factor the `$$readyLoaded` method out (as suggested above), we don't need a mock document at all here but can use the real `document`.