Added infinate scroll by creating a function in products.js and calling it in index.js.erb so ajax can find it. had to refactor and debug a few id and class selectors in order to just make one request per scroll with ajax