all but deck onclick function have been moved to flashcards.js