Added basic JS form handling for payment form