fix some js errors
refactors admin credit card payment form