Added is_card_full javascript function and modal trigger