Deck: fixing jshint issues