a simple memory game in javacript