Javascript based game of card mixing and matching