fix height calculation when the page is scrolled
scoped PageReady.js