fix payment template js