jQuery fixes for infinite scroll