you should never transfer credit card information through email.
email is a very insecure communication method, it is very bad practice to send a credit card number through email, not to mention it is illegal in most places.
as for the javascript error, what is the exact error you are getting?