adding help to payment.jsp
syncing the samples with js
adding comments and simplifications
merged changes