Drawdeck

Added JS functionality to allow drawing from the deck.