look for scroll position of document instead of body. closes #300. closes #298