Refactor cards.js to only add 2 cards to scope at a time