A memory game in javascript