js function for paybal