minor change to timing of scrolled class js call