Fix build tests infinite scroll + jsint errors