Fixed bug in posted deck.js file