HTML+JavaScript memory game