This is an example of how you can detect when the scroll has end and call a function to popluate with more elements