Memory game using Ajax and MongoDB