Support all cards

Modified curves.js to support all cards.