example memory game written in javascript