A start to a card game (or framework) written in Javascript