Configure infinite scroll.
Fix syntax error to make infinite scroll work.