Make infinite scroll work for modals. Closes #41