refactors the card.js tests
Merge pull request #645 from zachgersh/integration_cardjs

refactors the card.js tests