some fixing in payment js