change scrollTop call to document not body