Add waitThenScroll directive