A simple memory game in JavaScript