You can't convert it to Javascript since it's HTML and it needs to be HTML so the browser can read it.
If you're talking about the server-code it sends the form data to, (
https://www.paypal.com/cgi-bin/webscr), there's no way of even knowing what it does without the actual source code in that file, and since it's a serverside language - good luck trying to steal the code....