change phase definition to document.documentElement.scrollTop