Struggling with changing the payment date inline using javaScript