prettify deck demo by adding source markup
tweak deck api so that selected-index attribute stays synced with the actual selected card