update phase definition. seems document.body.scrollTop was deprecated. http://stackoverflow.com/questions/19635188/why-is-body-scrolltop-deprecated