JavaScript's similar cards