Cache `(i < ii && views[i].el.offsetTop > currentHeight)` in a variable (name it wisely!) and make this `if` go on line.