updated conditional to render homepage carousel scripts based on content type and template rather than itemID, plus someone else's flushCache edit