added waitForFn option
removed redundancy. semantically better check for current scrollTop position