Add paypal javascript payment function