remove duplicate scriptPortfolioReturns, updated to match style guidelines