fixed bug attempting add cards using jquery