Update sample_card.js

add ability to get card value