card memory game in js