Simple memory game in pure JavaScript.