Converted to use win.window.document, attempt to fix scrolling bug

#36