change innerHeight and scrollTop from function call to property call