modified infinite scroll script to support portfolios